<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.12.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Geo3DML-CPP: include/geo3dml/Style.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script type="text/javascript" src="clipboard.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="cookie.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">Geo3DML-CPP
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.12.0 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() { codefold.init(0); });
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search',false);
  $(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){ initResizable(false); });
/* @license-end */
</script>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_acc7f90eaa859a07dba55a8b62805b11.html">geo3dml</a></li>  </ul>
</div>
</div><!-- top -->
<div id="doc-content">
<div class="header">
  <div class="headertitle"><div class="title">Style.h</div></div>
</div><!--header-->
<div class="contents">
<a href="_style_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno">    1</span><span class="preprocessor">#pragma once</span></div>
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno">    2</span> </div>
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno">    3</span><span class="preprocessor">#include &lt;string&gt;</span></div>
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno">    4</span><span class="preprocessor">#include &lt;vector&gt;</span></div>
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno">    5</span><span class="preprocessor">#include &quot;<a class="code" href="_style_rule_8h.html">StyleRule.h</a>&quot;</span></div>
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno">    6</span><span class="preprocessor">#include &quot;<a class="code" href="_feature_8h.html">Feature.h</a>&quot;</span></div>
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno">    7</span> </div>
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno">    8</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespacegeo3dml.html">geo3dml</a> {</div>
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno">    9</span> </div>
<div class="foldopen" id="foldopen00010" data-start="{" data-end="};">
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"><a class="line" href="classgeo3dml_1_1_style.html">   10</a></span>    <span class="keyword">class </span><a class="code hl_class" href="classgeo3dml_1_1_style.html">Style</a> {</div>
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno">   11</span>    <span class="keyword">public</span>:</div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"><a class="line" href="classgeo3dml_1_1_style.html#a94d9244e8fad9507db724425bdc28b2c">   12</a></span>        <a class="code hl_function" href="classgeo3dml_1_1_style.html#a94d9244e8fad9507db724425bdc28b2c">Style</a>();</div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"><a class="line" href="classgeo3dml_1_1_style.html#ade3af3558ff1ea46f63d2bff100765ed">   13</a></span>        <span class="keyword">virtual</span> <a class="code hl_function" href="classgeo3dml_1_1_style.html#ade3af3558ff1ea46f63d2bff100765ed">~Style</a>();</div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno">   14</span> </div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"><a class="line" href="classgeo3dml_1_1_style.html#a34b9ad7dc10419f32f47198735b7c753">   15</a></span>        <span class="keywordtype">void</span> <a class="code hl_function" href="classgeo3dml_1_1_style.html#a34b9ad7dc10419f32f47198735b7c753">SetID</a>(<span class="keyword">const</span> std::string&amp; <span class="keywordtype">id</span>);</div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"><a class="line" href="classgeo3dml_1_1_style.html#ab9e47281257e55721a2cef40984baca8">   16</a></span>        std::string <a class="code hl_function" href="classgeo3dml_1_1_style.html#ab9e47281257e55721a2cef40984baca8">GetID</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno">   17</span> </div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"><a class="line" href="classgeo3dml_1_1_style.html#a8aeec0efbe03eb77044af5cfd1db336d">   18</a></span>        <span class="keywordtype">void</span> <a class="code hl_function" href="classgeo3dml_1_1_style.html#a8aeec0efbe03eb77044af5cfd1db336d">SetName</a>(<span class="keyword">const</span> std::string&amp; name);</div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"><a class="line" href="classgeo3dml_1_1_style.html#a9b17442ac3aa1f3cca65c1d4eb2dd3e3">   19</a></span>        std::string <a class="code hl_function" href="classgeo3dml_1_1_style.html#a9b17442ac3aa1f3cca65c1d4eb2dd3e3">GetName</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno">   20</span> </div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"><a class="line" href="classgeo3dml_1_1_style.html#a42671640df53a9dbaa5ea3659a3d85d7">   21</a></span>        <span class="keywordtype">void</span> <a class="code hl_function" href="classgeo3dml_1_1_style.html#a42671640df53a9dbaa5ea3659a3d85d7">AddRule</a>(<a class="code hl_class" href="classgeo3dml_1_1_style_rule.html">StyleRule</a>* rule);</div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"><a class="line" href="classgeo3dml_1_1_style.html#af643838887e90ce8d568b3334d94d5a5">   22</a></span>        <span class="keywordtype">int</span> <a class="code hl_function" href="classgeo3dml_1_1_style.html#af643838887e90ce8d568b3334d94d5a5">GetRuleCount</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"><a class="line" href="classgeo3dml_1_1_style.html#ab94ca963086dccd8fe5a7f649c5ab9ca">   23</a></span>        <a class="code hl_class" href="classgeo3dml_1_1_style_rule.html">StyleRule</a>* <a class="code hl_function" href="classgeo3dml_1_1_style.html#ab94ca963086dccd8fe5a7f649c5ab9ca">GetRuleAt</a>(<span class="keywordtype">int</span> i);</div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"><a class="line" href="classgeo3dml_1_1_style.html#a9d45abfa81c7ef0fa4f59112143914bd">   24</a></span>        <a class="code hl_class" href="classgeo3dml_1_1_style_rule.html">StyleRule</a>* <a class="code hl_function" href="classgeo3dml_1_1_style.html#a9d45abfa81c7ef0fa4f59112143914bd">MatchWithFeature</a>(<a class="code hl_class" href="classgeo3dml_1_1_feature.html">Feature</a>* f) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno">   25</span> </div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno">   26</span>    <span class="keyword">protected</span>:</div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"><a class="line" href="classgeo3dml_1_1_style.html#ab4ebfe55b1c7eac2ef74496a791a1ebe">   28</a></span>        <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classgeo3dml_1_1_style.html#ab4ebfe55b1c7eac2ef74496a791a1ebe">Reserved</a>() = 0;</div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno">   29</span> </div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno">   30</span>    <span class="keyword">private</span>:</div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"><a class="line" href="classgeo3dml_1_1_style.html#a86d9ec9b75bc00e557738966111daf94">   31</a></span>        std::string <a class="code hl_variable" href="classgeo3dml_1_1_style.html#a86d9ec9b75bc00e557738966111daf94">id_</a>, <a class="code hl_variable" href="classgeo3dml_1_1_style.html#afcd6bc9e7e3e352149db57cfadf0186e">name_</a>;</div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"><a class="line" href="classgeo3dml_1_1_style.html#a34fe7585464d1b989c253ebdcff3b03d">   32</a></span>        std::vector&lt;StyleRule*&gt; <a class="code hl_variable" href="classgeo3dml_1_1_style.html#a34fe7585464d1b989c253ebdcff3b03d">rules_</a>;</div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno">   33</span>    };</div>
</div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno">   34</span>}</div>
<div class="ttc" id="a_feature_8h_html"><div class="ttname"><a href="_feature_8h.html">Feature.h</a></div></div>
<div class="ttc" id="a_style_rule_8h_html"><div class="ttname"><a href="_style_rule_8h.html">StyleRule.h</a></div></div>
<div class="ttc" id="aclassgeo3dml_1_1_feature_html"><div class="ttname"><a href="classgeo3dml_1_1_feature.html">geo3dml::Feature</a></div><div class="ttdef"><b>Definition</b> Feature.h:10</div></div>
<div class="ttc" id="aclassgeo3dml_1_1_style_html"><div class="ttname"><a href="classgeo3dml_1_1_style.html">geo3dml::Style</a></div><div class="ttdef"><b>Definition</b> Style.h:10</div></div>
<div class="ttc" id="aclassgeo3dml_1_1_style_html_a34b9ad7dc10419f32f47198735b7c753"><div class="ttname"><a href="classgeo3dml_1_1_style.html#a34b9ad7dc10419f32f47198735b7c753">geo3dml::Style::SetID</a></div><div class="ttdeci">void SetID(const std::string &amp;id)</div></div>
<div class="ttc" id="aclassgeo3dml_1_1_style_html_a34fe7585464d1b989c253ebdcff3b03d"><div class="ttname"><a href="classgeo3dml_1_1_style.html#a34fe7585464d1b989c253ebdcff3b03d">geo3dml::Style::rules_</a></div><div class="ttdeci">std::vector&lt; StyleRule * &gt; rules_</div><div class="ttdef"><b>Definition</b> Style.h:32</div></div>
<div class="ttc" id="aclassgeo3dml_1_1_style_html_a42671640df53a9dbaa5ea3659a3d85d7"><div class="ttname"><a href="classgeo3dml_1_1_style.html#a42671640df53a9dbaa5ea3659a3d85d7">geo3dml::Style::AddRule</a></div><div class="ttdeci">void AddRule(StyleRule *rule)</div></div>
<div class="ttc" id="aclassgeo3dml_1_1_style_html_a86d9ec9b75bc00e557738966111daf94"><div class="ttname"><a href="classgeo3dml_1_1_style.html#a86d9ec9b75bc00e557738966111daf94">geo3dml::Style::id_</a></div><div class="ttdeci">std::string id_</div><div class="ttdef"><b>Definition</b> Style.h:31</div></div>
<div class="ttc" id="aclassgeo3dml_1_1_style_html_a8aeec0efbe03eb77044af5cfd1db336d"><div class="ttname"><a href="classgeo3dml_1_1_style.html#a8aeec0efbe03eb77044af5cfd1db336d">geo3dml::Style::SetName</a></div><div class="ttdeci">void SetName(const std::string &amp;name)</div></div>
<div class="ttc" id="aclassgeo3dml_1_1_style_html_a94d9244e8fad9507db724425bdc28b2c"><div class="ttname"><a href="classgeo3dml_1_1_style.html#a94d9244e8fad9507db724425bdc28b2c">geo3dml::Style::Style</a></div><div class="ttdeci">Style()</div></div>
<div class="ttc" id="aclassgeo3dml_1_1_style_html_a9b17442ac3aa1f3cca65c1d4eb2dd3e3"><div class="ttname"><a href="classgeo3dml_1_1_style.html#a9b17442ac3aa1f3cca65c1d4eb2dd3e3">geo3dml::Style::GetName</a></div><div class="ttdeci">std::string GetName() const</div></div>
<div class="ttc" id="aclassgeo3dml_1_1_style_html_a9d45abfa81c7ef0fa4f59112143914bd"><div class="ttname"><a href="classgeo3dml_1_1_style.html#a9d45abfa81c7ef0fa4f59112143914bd">geo3dml::Style::MatchWithFeature</a></div><div class="ttdeci">StyleRule * MatchWithFeature(Feature *f) const</div></div>
<div class="ttc" id="aclassgeo3dml_1_1_style_html_ab4ebfe55b1c7eac2ef74496a791a1ebe"><div class="ttname"><a href="classgeo3dml_1_1_style.html#ab4ebfe55b1c7eac2ef74496a791a1ebe">geo3dml::Style::Reserved</a></div><div class="ttdeci">virtual void Reserved()=0</div><div class="ttdoc">保持当前类为存续类而定义的接口。</div></div>
<div class="ttc" id="aclassgeo3dml_1_1_style_html_ab94ca963086dccd8fe5a7f649c5ab9ca"><div class="ttname"><a href="classgeo3dml_1_1_style.html#ab94ca963086dccd8fe5a7f649c5ab9ca">geo3dml::Style::GetRuleAt</a></div><div class="ttdeci">StyleRule * GetRuleAt(int i)</div></div>
<div class="ttc" id="aclassgeo3dml_1_1_style_html_ab9e47281257e55721a2cef40984baca8"><div class="ttname"><a href="classgeo3dml_1_1_style.html#ab9e47281257e55721a2cef40984baca8">geo3dml::Style::GetID</a></div><div class="ttdeci">std::string GetID() const</div></div>
<div class="ttc" id="aclassgeo3dml_1_1_style_html_ade3af3558ff1ea46f63d2bff100765ed"><div class="ttname"><a href="classgeo3dml_1_1_style.html#ade3af3558ff1ea46f63d2bff100765ed">geo3dml::Style::~Style</a></div><div class="ttdeci">virtual ~Style()</div></div>
<div class="ttc" id="aclassgeo3dml_1_1_style_html_af643838887e90ce8d568b3334d94d5a5"><div class="ttname"><a href="classgeo3dml_1_1_style.html#af643838887e90ce8d568b3334d94d5a5">geo3dml::Style::GetRuleCount</a></div><div class="ttdeci">int GetRuleCount() const</div></div>
<div class="ttc" id="aclassgeo3dml_1_1_style_html_afcd6bc9e7e3e352149db57cfadf0186e"><div class="ttname"><a href="classgeo3dml_1_1_style.html#afcd6bc9e7e3e352149db57cfadf0186e">geo3dml::Style::name_</a></div><div class="ttdeci">std::string name_</div><div class="ttdef"><b>Definition</b> Style.h:31</div></div>
<div class="ttc" id="aclassgeo3dml_1_1_style_rule_html"><div class="ttname"><a href="classgeo3dml_1_1_style_rule.html">geo3dml::StyleRule</a></div><div class="ttdef"><b>Definition</b> StyleRule.h:8</div></div>
<div class="ttc" id="anamespacegeo3dml_html"><div class="ttname"><a href="namespacegeo3dml.html">geo3dml</a></div><div class="ttdef"><b>Definition</b> AbstractMetadata.h:6</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.12.0
</small></address>
</div><!-- doc-content -->
</body>
</html>
